import store from '@/store'

export const printReport = (selectObj, infoMsg, fileName) => {
  const strUrl = `${store.state.config.ureportPrintIpAddr}/ureport/pdf/show?_u=${fileName}&id=${selectObj.id}`
  const height = window.screen.height * window.devicePixelRatio
  const width = window.screen.width * window.devicePixelRatio
  window.open(strUrl, fileName, `width=${width},height=${height},fullscreen=yes`)
}
